{# default Sliding pagination control implementation #}

{% if pageCount > 1 %}

    {% if first is defined and current != first %}
<a href="javascript:goToPage('{{ path(route, query|merge({(pageParameterName): first})) }}')" class="first paginate_button paginate_button_disabled" tabindex="0">First</a>

    {% endif %}

    {% if previous is defined %}
<a href="javascript:goToPage('{{ path(route, query|merge({(pageParameterName): previous})) }}')" class="previous paginate_button paginate_button_disabled" tabindex="0">Previous</a>

    {% endif %}

    {% for page in pagesInRange %}
        {% if page != current %}

<a class="paginate_button" href="javascript:goToPage('{{ path(route, query|merge({(pageParameterName): page})) }}')">{{ page }}</a>

        {% else %}
<span>
    <a class="paginate_active" tabindex="0">{{ page }}</a>
</span>

        {% endif %}

    {% endfor %}

    {% if next is defined %}

<a href="javascript:goToPage('{{ path(route, query|merge({(pageParameterName): next})) }}')" class="next paginate_button paginate_button_disabled" tabindex="0">Next</a>

    {% endif %}

    {% if last is defined and current != last %}

    <a href="javascript:goToPage('{{ path(route, query|merge({(pageParameterName): last})) }}')" class="last paginate_button paginate_button_disabled" tabindex="0">Last</a>

    {% endif %}

{% endif %}
